//
//  PBAddSeriveCollectCell.m
//  PBHomeDemo
//
//  Created by Playboy on 2018/5/17.
//  Copyright © 2018年 tmkj. All rights reserved.
//

#import "PBAddSeriveCollectCell.h"

@interface PBAddSeriveCollectCell ()
@property (weak, nonatomic) IBOutlet UIImageView *coverImageView;

@end

@implementation PBAddSeriveCollectCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)refreshWithImageArray:(NSMutableArray *)imageArray indexPath:(NSIndexPath *)indexPath {
    if (imageArray.count == indexPath.row) {
        self.coverImageView.image = [UIImage imageNamed:@"my_addserive"];
    }else {
        [self.coverImageView sd_setImageWithURL:[NSURL URLWithString:imageArray[indexPath.row]] placeholderImage:nil];
    }
}

@end
